package com.ajz.config.activeMq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class consumer1 {
	@JmsListener(destination="msg.queue")
	public void receiveQueue(String text){
		System.out.println("Consumer收到的报文为:"+text);  
	}
}
